/** 人事管理路由 */
import Layout from '@/views/layout/personnelLayout'

const personnelRouter = {
    path: '/hr',
    component: Layout,
    redirect: '/hr/recruitment',
    name: 'hr',
    meta: {
        requiresAuth: true,
        title: '人事',
        index: 0,
        type: 'hr'
    },
    children: [
        {
            path: 'recruitment',
            name: 'recruitment',
            component: () => import('@/views/personnelManagement/recruitment/index'),
            meta: {
                requiresAuth: true,
                icon: 'project',
                title: '招聘计划管理',
                index: 1,
                type: 'hr',
                subType: 'position'
            }
        },
        {
            path: 'audition',
            component: () => import('@/views/personnelManagement/audition/index'),
            meta: {
                requiresAuth: true,
                icon: 'customer',
                title: '面试人员管理',
                index: 1,
                type: 'hr',
                subType: 'interview'
            }
        },
        {
            path: 'wage',
            component: () => import('@/views/personnelManagement/wage/index'),
            meta: {
                requiresAuth: true,
                icon: 'money',
                title: '工资单管理',
                index: 1,
                type: 'hr',
                subType: 'salary'
            }
        }
    ]
}

export default personnelRouter